package com.bdqn.vueboot.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 办公家具申领
 *
 * @TableName furniture
 */
@TableName(value = "furniture")
@Data
public class Furniture implements Serializable {
    /**
     * 办公家具申领id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long furnitureId;

    /**
     * 服务事项
     */
    private String furnitureService;

    /**
     * 服务地点
     */
    private String furnitureAddress;

    /**
     * 联系人
     */
    private String furnitureUsrid;

    /**
     * 联系手机
     */
    private String furniturePhone;

    /**
     * 服务描述
     */
    private String furnitureDescribe;

    /**
     * 归属部门
     */
    private Long furnitureDepid;

    /**
     * 处理状态
     */
    private Long furnitureStaticid;


    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT, value = "creation_Id")
    private Long creationId;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT, value = "creation_Time")
    private LocalDateTime creationTime;

    /**
     * 修改者
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_Id")
    private Long updateId;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE, value = "update_Time")
    private LocalDateTime updateTime;

    @TableField(value = "isDel")
    private Long isDel;
    //办公家具服务类型
    @TableField(exist = false)
    private Furnituretype furnitureType;
    //部门
    @TableField(exist = false)
    private Department department;
    //用户表
    @TableField(exist = false)
    private SysUser sysUser;
    //状态表
    @TableField(exist = false)
    private Static statics;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
